import request from '@/utils/request'

// 查询运营成本列表
export function listCost(query) {
  return request({
    url: '/check/cost/list',
    method: 'get',
    params: query
  })
}

// 查询运营成本详细
export function getCost(storeOperatingCostId) {
  return request({
    url: '/check/cost/' + storeOperatingCostId,
    method: 'get'
  })
}

// 新增运营成本
export function addCost(data) {
  return request({
    url: '/check/cost',
    method: 'post',
    data: data
  })
}

// 修改运营成本
export function updateCost(data) {
  return request({
    url: '/check/cost',
    method: 'put',
    data: data
  })
}

// 删除运营成本
export function delCost(storeOperatingCostId) {
  return request({
    url: '/check/cost/' + storeOperatingCostId,
    method: 'delete'
  })
}
